package com.ddx.service;

import com.ddx.dto.ShortVideoDto;
import com.ddx.pojo.ShortVideo;

import java.util.List;
import java.util.Map;

/**
 * @author: liyuxiang
 * @create: 2018-11-10
 */
public interface ShortVideoService {

    List<ShortVideo> getListByRecord(ShortVideo shortVideo);

    List<ShortVideo> getUserLikeSV(String userId);

    List<ShortVideo> marvellous(ShortVideoDto shortVideoDto) throws Exception;

    List<ShortVideo> follow(ShortVideoDto shortVideoDto) throws Exception;

    List<ShortVideo> type(ShortVideoDto shortVideoDto) throws Exception;

    Map<String,Object> works(ShortVideoDto shortVideoDto) throws Exception;

    /**
     * 视频详情页面，传视频ID
     *
     * @param shortVideoDto
     * @return
     * @throws Exception
     */
    Map<String, Object> detail(ShortVideoDto shortVideoDto) throws Exception;

    Map<String,Object> search(Map<String,Object> map) throws Exception;
}
